package com.ruoyi.book.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电子书列表对象 book_fiction
 * 
 * @author 沉睡
 * @date 2024-08-05
 */
@Data
public class Fiction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 小说名称 */
    @Excel(name = "小说名称")
    private String fictionName;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 最新章 */
    @Excel(name = "最新章")
    private String newest;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 字数 */
    @Excel(name = "字数")
    private String number;

    /** 简介 */
    @Excel(name = "简介")
    private String brief;

    /** 缩略图地址 */
    @Excel(name = "缩略图地址")
    private String imgUrl;

    /** 小说地址 */
    @Excel(name = "小说地址")
    private String fictionUrl;

    /** 查看次数 */
    @Excel(name = "查看次数")
    private Long views;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public Fiction(String s, String img, String brief, String fictionName, String author, String type, String newest, String state, String s1) {
        this.fictionName = fictionName;
        this.author = author;
        this.type = type;
        this.newest = newest;
        this.state = state;
        this.number = s1;
        this.brief = brief;
        this.imgUrl = img;
        this.fictionUrl = s;
        this.views = 0L;
        this.delFlag = "0";
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fictionName", getFictionName())
            .append("author", getAuthor())
            .append("type", getType())
            .append("newest", getNewest())
            .append("state", getState())
            .append("number", getNumber())
            .append("brief", getBrief())
            .append("imgUrl", getImgUrl())
            .append("fictionUrl", getFictionUrl())
            .append("views", getViews())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
